﻿using System;

namespace Microsoft.International
{

    /// <summary>
    /// This attribute permits to define the target language of the translator.
    /// </summary>
    /// <remarks>
    /// Can only be used for Class.
    /// Allow to use multiple attribute for a class.
    /// </remarks>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
    internal sealed class FormatCultureInfoAttribute : Attribute
    {

        /// <summary>
        /// Initialize a new instance of the attribute Microsoft.International.FormatCultureInfoAttribute.
        /// </summary>
        /// <param name="cultureName">Name of the target culture.</param>
        internal FormatCultureInfoAttribute(String cultureName)
        {
            this.CultureName = cultureName;
        }

        /// <summary>
        /// Get the target culture name.
        /// </summary>
        /// <remarks>
        /// The setter is private.
        /// </remarks>
        internal String CultureName { get; private set; }

    }
}